// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_MST_COMPANY
// * CreateDate    : 2014-06-05 18:30:14
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:14
// * LastChanger   : 2014-06-05 18:30:14
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class MstCompanyTable : TableInfo
    {
		public const string C_TableName = "MST_COMPANY";
		
		public const string C_ID = "ID";
		public const string C_CREATED_BY = "CREATED_BY";
		public const string C_CREATED_DATE = "CREATED_DATE";
		public const string C_UPDATED_BY = "UPDATED_BY";
		public const string C_UPDATED_DATE = "UPDATED_DATE";
		public const string C_IS_ACTIVE = "IS_ACTIVE";
		public const string C_COMPANY_CODE = "COMPANY_CODE";
		public const string C_NAME = "NAME";
		public const string C_NAME_ENGLISH = "NAME_ENGLISH";
		public const string C_LEGAL_PERSON = "LEGAL_PERSON";
		public const string C_MP = "MP";
		public const string C_TEL = "TEL";
		public const string C_FAX = "FAX";
		public const string C_ADD = "ADD";
		public const string C_PC = "PC";
		public const string C_WEB = "WEB";
		public const string C_EMAIL = "EMAIL";
		public const string C_STATUS = "STATUS";
		
		public MstCompanyTable()
        {
            _tableName = "MST_COMPANY";
        }
		
		protected static MstCompanyTable _current;
        public static MstCompanyTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new MstCompanyTable();

            _current.Add(C_ID, new ColumnInfo(C_ID,"Id", true, typeof(string)));
            _current.Add(C_CREATED_BY, new ColumnInfo(C_CREATED_BY,"CreatedBy", false, typeof(string)));
            _current.Add(C_CREATED_DATE, new ColumnInfo(C_CREATED_DATE,"CreatedDate", false, typeof(DateTime)));
            _current.Add(C_UPDATED_BY, new ColumnInfo(C_UPDATED_BY,"UpdatedBy", false, typeof(string)));
            _current.Add(C_UPDATED_DATE, new ColumnInfo(C_UPDATED_DATE,"UpdatedDate", false, typeof(DateTime)));
            _current.Add(C_IS_ACTIVE, new ColumnInfo(C_IS_ACTIVE,"IsActive", false, typeof(int)));
            _current.Add(C_COMPANY_CODE, new ColumnInfo(C_COMPANY_CODE,"CompanyCode", false, typeof(string)));
            _current.Add(C_NAME, new ColumnInfo(C_NAME,"Name", false, typeof(string)));
            _current.Add(C_NAME_ENGLISH, new ColumnInfo(C_NAME_ENGLISH,"NameEnglish", false, typeof(string)));
            _current.Add(C_LEGAL_PERSON, new ColumnInfo(C_LEGAL_PERSON,"LegalPerson", false, typeof(string)));
            _current.Add(C_MP, new ColumnInfo(C_MP,"Mp", false, typeof(string)));
            _current.Add(C_TEL, new ColumnInfo(C_TEL,"Tel", false, typeof(string)));
            _current.Add(C_FAX, new ColumnInfo(C_FAX,"Fax", false, typeof(string)));
            _current.Add(C_ADD, new ColumnInfo(C_ADD,"Add", false, typeof(string)));
            _current.Add(C_PC, new ColumnInfo(C_PC,"Pc", false, typeof(string)));
            _current.Add(C_WEB, new ColumnInfo(C_WEB,"Web", false, typeof(string)));
            _current.Add(C_EMAIL, new ColumnInfo(C_EMAIL,"Email", false, typeof(string)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS,"Status", false, typeof(string)));
			
		}
		
		public ColumnInfo ID
        {
            get { return this[C_ID]; }
        }
		
		public ColumnInfo CREATED_BY
        {
            get { return this[C_CREATED_BY]; }
        }
		
		public ColumnInfo CREATED_DATE
        {
            get { return this[C_CREATED_DATE]; }
        }
		
		public ColumnInfo UPDATED_BY
        {
            get { return this[C_UPDATED_BY]; }
        }
		
		public ColumnInfo UPDATED_DATE
        {
            get { return this[C_UPDATED_DATE]; }
        }
		
		public ColumnInfo IS_ACTIVE
        {
            get { return this[C_IS_ACTIVE]; }
        }
		
		public ColumnInfo COMPANY_CODE
        {
            get { return this[C_COMPANY_CODE]; }
        }
		
		public ColumnInfo NAME
        {
            get { return this[C_NAME]; }
        }
		
		public ColumnInfo NAME_ENGLISH
        {
            get { return this[C_NAME_ENGLISH]; }
        }
		
		public ColumnInfo LEGAL_PERSON
        {
            get { return this[C_LEGAL_PERSON]; }
        }
		
		public ColumnInfo MP
        {
            get { return this[C_MP]; }
        }
		
		public ColumnInfo TEL
        {
            get { return this[C_TEL]; }
        }
		
		public ColumnInfo FAX
        {
            get { return this[C_FAX]; }
        }
		
		public ColumnInfo ADD
        {
            get { return this[C_ADD]; }
        }
		
		public ColumnInfo PC
        {
            get { return this[C_PC]; }
        }
		
		public ColumnInfo WEB
        {
            get { return this[C_WEB]; }
        }
		
		public ColumnInfo EMAIL
        {
            get { return this[C_EMAIL]; }
        }
		
		public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }
		
		
		
	}
}

